export default {


    'GET /scrum/1': (req, res) => {

        let laneList = [];
        for (let i = 0; i < 2; i++) {
            let id = Math.ceil(Math.random() * 1000000000);

            let blockList = []
            for (let i = 0; i <10; i++) {
                let id = Math.ceil(Math.random() * 1000000000);

                let taskList = [];
                for (let i = 0; i < Math.ceil(Math.random() * 3); i++) {
                    let id = Math.ceil(Math.random() * 1000000000);
                    taskList.push({
                        id: id,
                        name: 'Task' + id,
                    })
                }
                blockList.push({
                    id: id,
                    name: 'Block' + id,
                    taskList: taskList
                })
            }
            laneList.push({
                id: id,
                name: 'Lane' + id,
                blockList: blockList
            })
        }

        res.send({
            name: '测试看板',
            startDate: '2020-09-07',
            endDate: '2020-10-07',
            laneList: laneList
        })
    }
}